﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;
using GCELibrary.Current;

namespace ZF.WS.fz
{
    public partial class list : BLL.Page.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {



            using (var dc = SiteInfo.CreateDBDataContext())
            {
                var list = dc.G_Buddha.ToList();
                this.lvFZ.DataSource = list;
                this.lvFZ.DataBind();


                var msglist = dc.G_Bowing.Where(p => p.Msg != null && p.Msg != "").Select(p => p.Msg).Distinct().Take(10)
                     .Select(p => new { Msg = p }).ToList();
                this.lvMsg.DataSource = msglist;
                this.lvMsg.DataBind();

            }
        }
    }
}
